﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Xiaov.SmartWeb.Model.Statistical.Select
{
    public class MonthSelect_BND:ISelect
    {
        public string DefaultValue
        {
            get;
            set;
        }

        public List<System.Web.UI.WebControls.ListItem> ListItems
        {
            get;
            set;
        }

        public void DataBind(string dw, string tn, string nf, string yf)
        {
            ListItems = new List<System.Web.UI.WebControls.ListItem>();
            ListItems.Add(new System.Web.UI.WebControls.ListItem("6","6"));
            ListItems.Add(new System.Web.UI.WebControls.ListItem("12", "12"));
            int f = DateTime.Now.Month;
            if (f > 6) f = 12; else f = 6;
                DefaultValue = f.ToString();
        }
    }
}
